﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using Frogism.Core;
using Frogism.Data;
namespace Frogism.Domain {
    public abstract class ManagerBase<T,I> : Core.IManagerBase<I> where T : ObjectIdBase{
      public abstract ILoader<T,I> Loader{get;}
      public I Get(int id) {
        return Loader.GetById(id);
      }
      public virtual IEnumerable<I> GetAll() {
        return Loader.GetAll();
      }
    }
}
